package com.pituruh.tjroute;

import com.google.android.maps.MapActivity;

import android.content.Intent;
import android.content.res.Resources;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.GradientDrawable.Orientation;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

public class MapShelter extends MapActivity {
	/** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.map_shelter);
        
        Resources res = getResources();
        int colors[] =  {res.getColor(R.color.actionbar_color_1),res.getColor(R.color.actionbar_color_2)};
        GradientDrawable grad = new GradientDrawable(Orientation.TOP_BOTTOM,colors);
        LinearLayout layout = (LinearLayout) findViewById(R.id.buttonlayout);
        layout.setBackgroundDrawable(grad);
        
        TextView title_bar = (TextView) findViewById(R.id.title_bar);
        title_bar.setText(R.string.trayek);

    }
    
    public void onHomeClick(View v) {
    	startActivity(new Intent(MapShelter.this, TJRoute.class));
    }
    
    public void onCariClick(View v) {
    	startActivity(new Intent(MapShelter.this, FindRoute.class));
    }

	@Override
	protected boolean isRouteDisplayed() {
		return (false);
	}

}
